package com.gscitysfy.cus.drain.modules.warning.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.gscitysfy.cus.drain.modules.command.entity.CommonEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 2022-10-20 19:15:57
 */
@Getter
@Setter
@TableName("drain_waring_system")
public class DrainWaringSystem  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预警机制id 主键id
     */
    @TableId
    private Long cmKid;

    /**
     * 预警机制名称
     */
    private String warningSystemName;

    /**
     * 预警机制类型
     */
    private String warningSystemType;

    /**
     * 预警机制来源
     */
    private String warningSystemSource;

    /**
     * 是否分页
     */
    @TableField(exist = false)
    private boolean isPage ;
    /**
     * 预警描述
     */
    private String warningInfo;
    @TableField(value = "cm_creator",fill = FieldFill.INSERT)
    private String cmCreator;
    @TableField(value = "cm_modifier",fill = FieldFill.UPDATE)
    private String cmModifier;

    private String cmOrgflag;

    private String cmRegflag;

    private Long cmTenantid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_addtime",fill = FieldFill.INSERT)
    private Date cmAddtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_uptime", fill = FieldFill.UPDATE)
    private Date cmUptime;

    private Long cmVersion;
    private Boolean cmUsable;

    /**
     * 预警附件id
     */;
    private Long warningFileId;

    @TableField(exist = false)
    private String  cmFileName;
    @TableField(exist = false)
    private String cmFilePreviewUrl;
    /**
     * id字符串，用逗号分隔
     */
    @TableField(exist = false)
    private String ids;
}
